#ifndef TABLERESIZEDIALOG_H
#define TABLERESIZEDIALOG_H

#include <QDialog>
#include <QSpinBox>
#include <QLabel>
#include <QPushButton>
#include <QCheckBox>
#include <QGridLayout>

class TableResizeDialog : public QDialog
{
    Q_OBJECT

public:
    explicit TableResizeDialog(int columns, int rows, QWidget *parent = nullptr);

    int columnWidth() const;
    int rowHeight() const;
    bool hasColumnWidth() const;
    bool hasRowHeight() const;

private:
    QCheckBox *columnWidthCheckBox;
    QSpinBox *columnWidthSpinBox;
    QCheckBox *rowHeightCheckBox;
    QSpinBox *rowHeightSpinBox;
    QPushButton *okButton;
    QPushButton *cancelButton;
};

#endif // TABLERESIZEDIALOG_H
